var webpackConfig = require("@vue/cli-service/webpack.config")

module.exports = function (config) {
  config.set({
    frameworks: ["mocha"],
    files: ["tests/**/*.spec.js"],
    preprocessors: {
      "tests/**/*.spec.js": ["webpack", "sourcemap"]
    },
    autoWatch: true,
    webpack: webpackConfig,
    reporters: ['spec'],
    browsers: ["ChromeHeadless"]
  })
}